package com.sinosoft.domain;

public enum CodeEnums {
    SUCCESS(0, "成功"),
    SYSTEM_ERR(1, "系统异常"),
    PARA_ERR(2, "[参数异常]:"),
    SOURCE_INVALID(9999,"非法来源"),
    USER_INVALID(10000,"非法用户"),
    USER_EXIST(10001, "用户已经注册"),
    PWD_CHECK_ERR(10002, "重复密码有误"),
    USER_NOT_EXIST(10003, "用户不存在"),
    USER_IS_LOCK(10004, "用户状态被锁定"),
    USER_PWD_FAIL(10005, "用户名或密码错误"),
    USER_TIME_OUT(10006, "用户登录异常,请重新登陆"),
    TIME_OUT_ERROR(10008, "链接超时异常!"),
    USER_ROLE_LIMIT(10009, "权限不足"),
    DATA_RW_ERROR(10010,"数据读取异常"),
    MOTOR_USEAGE_ERROR_V1(10011,"车辆使用性质为营运，不允许承保!"),
    MOTOR_PURPOSE_ERROR_V1(10012,"车辆用途不是家庭自用车，不允许承保!"),
    MOTOR_PURPOSE_ERROR_V2(10013,"车辆用途：城市公交，车辆种类不能为6座以下客车"),
    MOTOR_PURPOSE_ERROR_V3(10014,"车辆用途：公路客运，车辆种类不能为6座以下客车"),
    SYS_CHANGED_ERROR(10015,"因五一期间营改增调整，现易保通只提供报价功能，五月四号恢复正常。如需紧急出单请从核心出单，给您带来不便敬请谅解!"),
    CONDITION_NULL(10016,"查询条件不能为空!"),
    BUSINESS_NULL(10017,"请输入业务类型"),
    ISOPERATOR_ERROR(10018,"判断是否操作人登录失败"),
    CACHE_ERROR(10019,"缓存数据异常"),
    CORE_ERROR(10020,"核心接口调用异常"),
    NO_DATA(10021,"查无结果"),
    RESP_DATA_ERROR(10022,"返回参数不匹配"),
    SAVE_ERROR(10023,"数据存储异常"),
    MESSAGE_ERROR(10024,"短信发送异常"),
    REGISTER_ERROR(10033,"每个手机号只能注册一个账户！");

    private Integer code;
    private String msg;

    CodeEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
